package com.xzx.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 分类实体类
 * author:xfsong
 */
@Data
@TableName("shop_categories")
public class Category {
    @TableId(type = IdType.AUTO)
    private Long id;
    @JsonProperty("cate_name")
    private String cateName;
    @JsonProperty("parent_id")
    private Long parentId;
    private int sort;
    private List<Category> children;
}
